package cn.lil.model;

import java.math.BigDecimal;

public class OrderItemWithBearing {
    private OrderItem orderItem;
    private String bearingType;
    private Float bearingPrice; // 假设价格是从 Bearing 对象获取的

    private String imgSrc;
    @Override
    public String toString() {
        return "OrderItemWithBearing{" +
                "orderItem=" + orderItem +
                ", bearingType='" + bearingType + '\'' +
                ", bearingPrice=" + bearingPrice +
                ", imgSrc='" + imgSrc + '\'' +
                '}';
    }

    public OrderItem getOrderItem() {
        return orderItem;
    }

    public void setOrderItem(OrderItem orderItem) {
        this.orderItem = orderItem;
    }

    public String getBearingType() {
        return bearingType;
    }

    public void setBearingType(String bearingType) {
        this.bearingType = bearingType;
    }

    public Float getBearingPrice() {
        return bearingPrice;
    }

    public void setBearingPrice(Float bearingPrice) {
        this.bearingPrice = bearingPrice;
    }

    public String getImgSrc() {
        return imgSrc;
    }

    public void setImgSrc(String imgSrc) {
        this.imgSrc = imgSrc;
    }

    public OrderItemWithBearing() {
    }

    public OrderItemWithBearing(OrderItem orderItem, String bearingType, Float bearingPrice, String imgSrc) {
        this.orderItem = orderItem;
        this.bearingType = bearingType;
        this.bearingPrice = bearingPrice;
        this.imgSrc = imgSrc;
    }
}
